<?php

require_once 'business/AccountManager.php';
require_once 'const/RequestConst.php';

class IndexController extends Zend_Controller_Action {

    public function init() {
        /* Initialize action controller here */
    }

    public function indexAction() {
        $newProducts = Application_Model_ProductMapper::getNewProducts(8);
        $this->view->newProducts = $newProducts;
        $hotProducts = Application_Model_ProductMapper::getHotProducts(8);
        $this->view->hotProducts = $hotProducts;
        $types = Application_Model_TypeMapper::fetchAll();
        $this->view->types = $types;
    }

}

